package com.unidt.www.module.third.enterprise.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.unidt.www.framework.common.util.object.annotation.BeanField;
import com.unidt.www.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author ouyangoyys
 * @since 2022-11-24
 */

@TableName("t_enterprise_notice")
@Data
@EqualsAndHashCode(callSuper = true)
public class EnterpriseNoticeDO extends BaseDO {

    @TableId
    private Long id;

    @ApiModelProperty(value = "标题")
    @BeanField(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    @BeanField(value = "内容")
    private String content;

    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty("状态")
    private Long status;


    @ApiModelProperty("分类：1、企业。2、用户。")
    private Long type;

    /**
     * 流程定义的编号
     *
     * 关联 ProcessDefinition 的 id 属性
     */
    @ApiModelProperty("流程定义id")
    private String processDefinitionId;

    @ApiModelProperty("表单")
    private String formKey;

    @ApiModelProperty("浏览次数")
    private Long count;

}
